#pragma once

#define WIN32_LEAN_AND_MEAN
#define DIRECTINPUT_VERSION 0x0800
#include <dinput.h>
#pragma comment(lib, "dinput8.lib")
#pragma comment(lib, "dxguid.lib")

#include "Structures.h"

class Input
{
private:
	IDirectInput8 * m_pDIObject;
	IDirectInputDevice8 * m_pDIKeyboard, * m_pDIMouse;
private:
	DIMOUSESTATE2 mouseState;
	char buffer[KEYBOARD_BUFF_SIZE];
	bool key[KEYBOARD_BUFF_SIZE];
public:
	Input();
	bool Update();
	InputStruct getInput();
};